package net.daum.webtoon.android.dto;

import android.os.Parcel;
import android.os.Parcelable;

public class DaumWebToonItem implements Parcelable {

	public int id;
	public String nickname;
	public String title;
	public String englishTitle;
	public String imageUrl;
	public String thumbUrl;
	public String finishYN;
	public String webtoonType;
	public int ageGrade;

	public DaumWebToonItem() {

	}

	public DaumWebToonItem(Parcel in) {
		id = in.readInt();
		nickname = in.readString();
		title = in.readString();
		englishTitle = in.readString();
		imageUrl = in.readString();
		thumbUrl = in.readString();
		finishYN = in.readString();
		webtoonType = in.readString();
		ageGrade = in.readInt();
	}

	public static final Parcelable.Creator<DaumWebToonItem> CREATOR = new Parcelable.Creator<DaumWebToonItem>() {
		public DaumWebToonItem createFromParcel(Parcel in) {
			return new DaumWebToonItem(in);
		}

		public DaumWebToonItem[] newArray(int size) {
			return new DaumWebToonItem[size];
		}
	};

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeString(nickname);
		dest.writeString(title);
		dest.writeString(englishTitle);
		dest.writeString(imageUrl);
		dest.writeString(thumbUrl);
		dest.writeString(finishYN);
		dest.writeString(webtoonType);
		dest.writeInt(ageGrade);
	}

//@formatter:off
}
	/*
	{
	"result": {
	    "status": "200",
	    "message": ""
	},
	"page": {
	    "size": 1,
	    "no": 1,
	    "groupRange": 10,
	    "totalItemCount": 395
	},
	"data": {
	    "webtoonList": [
	        {
	            "id": 911,
	            "nickname": "wave",
	            "webtoonType": "series",
	            "title": "�ĵ�",
	            "englishTitle": null,
	            "finishYn": "N",
	            "titleImage": null,
	            "titleImage2": {
	                "id": 43026468,
	                "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/50AC1E52010E490002",
	                "name": null,
	                "size": null,
	                "width": 0,
	                "height": 0,
	                "mediaType": null
	            },
	            "thumbnailImage": {
	                "id": 43026424,
	                "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/50AC1D94043C080001",
	                "name": null,
	                "size": null,
	                "width": 0,
	                "height": 0,
	                "mediaType": null
	            },
	            "thumbnailImage2": {
	                "id": 43026425,
	                "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/50AC1D8F0448EC0002",
	                "name": null,
	                "size": null,
	                "width": 0,
	                "height": 0,
	                "mediaType": null
	            },
	            "padThumbnailImage": {
	                "id": 43026427,
	                "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/50AC1DA00379C00002",
	                "name": null,
	                "size": null,
	                "width": 0,
	                "height": 0,
	                "mediaType": null
	            },
	            "artistCommentImage": null,
	            "homeThumbnailImage": {
	                "id": 43026426,
	                "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/50AC1D9A03151C0001",
	                "name": null,
	                "size": null,
	                "width": 0,
	                "height": 0,
	                "mediaType": null
	            },
	            "introduction": "�����ڿ� �����, �׵��� ���̴� ġ���� ��������!",
	            "startDate": "20121121000000",
	            "finishDate": null,
	            "serviceStatus": "service",
	            "viewerType": "scroll",
	            "weekTerm": "weekly",
	            "titleHtml": null,
	            "articleId": 0,
	            "media": "daum",
	            "webtoonGroupId": null,
	            "commentUseYn": null,
	            "dateCreated": "20121121091748",
	            "webtoonComment": {
	                "id": 0,
	                "articleId": 26998,
	                "webtoon": null,
	                "webtoonEpisode": null,
	                "commentUseYn": "Y"
	            },
	            "cartoon": {
	                "id": 43846,
	                "title": null,
	                "englishTitle": null,
	                "introduction": null,
	                "titleImage": null,
	                "genres": [
	                    {
	                        "id": 8,
	                        "name": "����"
	                    }
	                ],
	                "artists": [
	                    {
	                        "id": 150,
	                        "name": "����",
	                        "penName": "����",
	                        "introduction": "<p>������ȭ������ '�ʰ? �߱���', '�ȵ����'�� ����� �޾Ҵ� ���� �۰�. �ϻ��� ��� ���� ���׷� ��ȭ��Ű�� �پ �ɷ��� ������ �ִ�.</p>",
	                        "history": "<p>2007�� ����Ʈ ����<br />\r\n2009�� ��Ȯ�ΰ��ֹ�ü<br />\r\n2009�� ����Ʈ ����2</p>",
	                        "career": null,
	                        "pictureImage": {
	                            "id": 17674,
	                            "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/U529FD2D294EFDF20C",
	                            "name": null,
	                            "size": null,
	                            "width": 0,
	                            "height": 0,
	                            "mediaType": null
	                        },
	                        "smallPictureImage": {
	                            "id": 58448,
	                            "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/U81B5C2D2F56C5C8D8",
	                            "name": null,
	                            "size": null,
	                            "width": 0,
	                            "height": 0,
	                            "mediaType": null
	                        },
	                        "nameImage": {
	                            "id": 6948106,
	                            "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/U844C0049A96E13A8A",
	                            "name": null,
	                            "size": null,
	                            "width": 0,
	                            "height": 0,
	                            "mediaType": null
	                        },
	                        "birthDay": "19761130000000",
	                        "debutDay": "20061130000000",
	                        "email": "bullpen7@hanmail.net",
	                        "homepage": "",
	                        "blog": "http://profile.blog.naver.com/jang2home.do",
	                        "cafe": null,
	                        "fancafe": "http://cafe.daum.net/perfectgame2010",
	                        "teamYn": "N",
	                        "team": null,
	                        "joinDay": null,
	                        "breakDay": null,
	                        "artistOrder": 0,
	                        "artistType": "picture",
	                        "authUserinfo": null
	                    },
	                    {
	                        "id": 150,
	                        "name": "����",
	                        "penName": "����",
	                        "introduction": "<p>������ȭ������ '�ʰ? �߱���', '�ȵ����'�� ����� �޾Ҵ� ���� �۰�. �ϻ��� ��� ���� ���׷� ��ȭ��Ű�� �پ �ɷ��� ������ �ִ�.</p>",
	                        "history": "<p>2007�� ����Ʈ ����<br />\r\n2009�� ��Ȯ�ΰ��ֹ�ü<br />\r\n2009�� ����Ʈ ����2</p>",
	                        "career": null,
	                        "pictureImage": {
	                            "id": 17674,
	                            "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/U529FD2D294EFDF20C",
	                            "name": null,
	                            "size": null,
	                            "width": 0,
	                            "height": 0,
	                            "mediaType": null
	                        },
	                        "smallPictureImage": {
	                            "id": 58448,
	                            "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/U81B5C2D2F56C5C8D8",
	                            "name": null,
	                            "size": null,
	                            "width": 0,
	                            "height": 0,
	                            "mediaType": null
	                        },
	                        "nameImage": {
	                            "id": 6948106,
	                            "url": "http://i1.cartoon.daumcdn.net/svc/image/U03/cartoon/U844C0049A96E13A8A",
	                            "name": null,
	                            "size": null,
	                            "width": 0,
	                            "height": 0,
	                            "mediaType": null
	                        },
	                        "birthDay": "19761130000000",
	                        "debutDay": "20061130000000",
	                        "email": "bullpen7@hanmail.net",
	                        "homepage": "",
	                        "blog": "http://profile.blog.naver.com/jang2home.do",
	                        "cafe": null,
	                        "fancafe": "http://cafe.daum.net/perfectgame2010",
	                        "teamYn": "N",
	                        "team": null,
	                        "joinDay": null,
	                        "breakDay": null,
	                        "artistOrder": 0,
	                        "artistType": "story",
	                        "authUserinfo": null
	                    }
	                ],
	                "joinArtists": null,
	                "categories": [
	                    {
	                        "id": 1,
	                        "name": "���丮",
	                        "categoryType": "story",
	                        "image": null
	                    }
	                ]
	            },
	            "event": null,
	            "viewerEvent": null,
	            "webtoonWeeks": [
	                {
	                    "id": 7866,
	                    "weekDay": "wed"
	                }
	            ],
	            "webtoonEpisodes": null,
	            "latestWebtoonEpisode": null,
	            "seriesWebtoons": null,
	            "webtoonServices": null,
	            "url": null,
	            "score": 0,
	            "tag": null,
	            "hasPadtoon": false,
	            "isNew": false,
	            "payYn": "N",
	            "price": 0,
	            "ageGrade": 0,
	            "averageScore": 9.317757009345794,
	            "seriesYn": null,
	            "padtoonYn": null,
	            "padYn": "Y",
	            "mobileYn": "Y",
	            "ranking": 0,
	            "diff": 0
	        }
	    ]
	},
	"metaData": null
	}

	*/
